<?php

/**
 * Std_CheckBoxObject - Standard checkbox object
 *
 * @package
 * @author Alexis Eric, 
 * Erra Prod. http://www.erraprod.com
 * @copyright Copyright (c) 2012 - Erra Prod
 * @access public
 */
class Std_CheckBoxObject extends Erra_Fields_Base_Object {

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);
        $checkbox_content = Erra_Fields_MultipleCheckBox::create('multiplecheckbox_content')
                ->setDescription(__('Multiple checkbox value'));
        if (is_array($buildArgs)) {
            $checkbox_content->fill($buildArgs);
        }
        $this->addFields($checkbox_content);
    }

    public function __render($displayArgs = null) {
        $res = $this->multiplecheckbox_content->value;
        return $res;
    }

}

?>